package com.glodon.paas.job.extend.spring;

import javax.annotation.PostConstruct;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class AutowaireHibernateDAOSupport extends HibernateDaoSupport {
    @Autowired
    private SessionFactory sessionFactory;

    @PostConstruct
    @SuppressWarnings("unused")
    private void init() {
        setSessionFactory(sessionFactory);
    }
}
